package com.haifeng.myhookdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        myAsyntask m=new myAsyntask();
        m.execute("1","2","3");

    }
    public void click1(View v){
        startActivity(new Intent(this,FristActivity.class));

    }

    public void click2(View v){
        startActivity(new Intent(this,TwoActivity.class));
    }
    public class myAsyntask extends AsyncTask<String, Object, Object> {

        @Override
        protected Object doInBackground(String... strings) {
            if (strings!=null&&strings.length>0){
                for (String d:strings){
                    Log.i("tag",d);
                }

            }
            return null;
        }
    }
}